
def outbound_1():
  """E1. Outbound call DN1 to ExtDn, release DN1"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()

def outbound_2():
  """E2. Outbound call DN1 to ExtDn, abnormal release DN1"""
  AilAg1.MakeCall(Ext1DN2)
  AilAg1.ReleaseCall()

def outbound_3():
  """E3. Outbound call DN1 to ExtDn, release ExtDn"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  Ext1AilAg2.ReleaseCall()



def outbound_6():
  """E6. DN1 internal call to DN3, DN3 two step transfer to Ext1DN, release DN1"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_7():
  """E7. DN1 internal call to DN3, DN3 tinit to Ext1DN,  abn rel Ext1DN, rel DN1"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()

def outbound_8():
  """E8. DN1 internal call to DN3, DN3 tinit to Ext1DN, rel DN1, Ext1DN ans, Ext1DN rel"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg1.ReleaseCall()
  Ext1AilAg2.AnswerCall()
  AilAg3.ReleaseCall()

def outbound_9():
  """E11. DN1 internal call to DN3, DN3  blind trans to Ext1DN, rel DN1"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()

def outbound_10():
  """E12. DN1 internal call to DN3, DN3  blind trans to Ext1DN, abn, rel DN1"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_11():
  """E13. DN1 internal call to ACD3, PosID3 two step transfer to Ext1DN, release DN1"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_12():
  """E14. DN1 internal call to ACD3, PosID3 tinit transf to Ext1DN, abn rel PosID3, rel DN1"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()

def outbound_13():
  """E17. DN1 internal call to ACD3, PosID3 tinit trans to Ext1DN, rel DN1, release Ext1DN"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()
  Ext1AilAg2.ReleaseCall()

def outbound_14():
  """E18. DN1 internal call to ACD3, PosID3  blind transfer to Ext1DN, rel DN1"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()

def outbound_15():
  """E19. DN1 internal call to ACD3, PosID3  blind trans to Ext1DN,abnor, rel DN1"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_16():
  """E20. DN1 internal call to DN3, DN3 conference to Ext1DN, release DN1,DN3"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateConference(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.CompleteConference()
  AilAg1.ReleaseCall()
  AilAg3.ReleaseCall()

def outbound_17():
  """E21. DN1 internal call to DN3, DN3 cinit conf to Ext1DN, abn release DN3, release DN1"""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateConference(Ext1DN2)
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()

def outbound_18():
  """E24.  DN1 internal call to ACD3, PosID3 conference to Ext1DN, release DN1,PosID3"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateConference(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.CompleteConference()
  AilAg1.ReleaseCall()
  AilAg3.ReleaseCall()

def outbound_19():
  """E27. DN1 internal call to ACD3, PosID3  cinit  to Ext1DN, release DN1, rel Ext1DN"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateConference(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()
  Ext1AilAg2.ReleaseCall()
